﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.CommandServices
{
    public class TienDoDeTaiCommandService:ITienDoDeTaiCommandService
    {
        private TienDoDeTaiRepository _tienDoDeTaiRepository;
        public TienDoDeTaiCommandService(TienDoDeTaiRepository tienDoDeTaiRepository)
        {
            _tienDoDeTaiRepository = tienDoDeTaiRepository;
        }
        public TienDoDeTaiDTO InsertTienDoDeTai(TienDoDeTaiDTO tienDoDTO)
        {
            return _tienDoDeTaiRepository.InsertTienDoDeTai(tienDoDTO);
        }
        public bool DeleteTienDoDeTai(Guid maTienDoDeTai)
        {
            return _tienDoDeTaiRepository.DeleteTienDoDeTai(maTienDoDeTai);
        }
        public bool DeleteAllTienDoDeTai(Guid maDeTai)
        {
            return _tienDoDeTaiRepository.DeleteAllTienDoDeTai(maDeTai);
        }
    }
}
